package com.itheima.clients.fullBack;

import com.itheima.pojo.Order;
import com.itheima.service.OrderService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class FallbackOrder implements OrderService {
    @Override
    public List<Order> findOrderByUserName(String username) {
        Order order = new Order();
        order.setReceiverAddress("对不起出错了！");
        ArrayList<Order> orders = new ArrayList<>();
        orders.add(order);
        return orders;
    }
}